package com.example.piece.ui.activity

import android.os.Bundle
import com.therouter.router.Route
import com.example.base.ui.activity.BaseActivity
import com.example.piece.R
import com.example.piece.constant.RoutePath


import com.example.piece.databinding.ActivityMapBinding

@Route(path = RoutePath.MAIN_MAP)
class MapActivity : BaseActivity<ActivityMapBinding>() {

    override fun getContentRes(): Int = R.layout.activity_map

    override fun initData(savedInstanceState: Bundle?) {
       /* LocationTool.init(this, true) {
            val locationInfoStr =
                "[${it.latitude}, ${it.longitude}] - ${it.address}, ${it.locationDescribe} - [${it.country}, ${it.province}, ${it.city}, ${it.district}, ${it.street}]"
            Log.e("map", locationInfoStr)
            mBinding.tvLocation.text = locationInfoStr

            // 获取图片链接并设置
            val imgUrl = StaticMapImageTool.createImageUrl(it.longitude, it.latitude, 500, 500)
            Glide.with(this).load(imgUrl).into(mBinding.ivMap)
        }*/
    }

}
